package com.bracketbird.client.gui.club.tournament;


import com.bracketbird.client.model.*;
import com.bracketbird.clientcore.appcontrol.*;
import com.bracketbird.clientcore.gui.*;

/**
 *
 */
public class CreateTemplatePageController extends PageController<CreateTemplatePage> {

    public static String HISTORY_NAME = "CreateTemplatePage";
    private static CreateTemplatePageController instance;

    private CreateTemplatePageController() {
        super(TournamentsPageController.getInstance(), HISTORY_NAME);
    }

    public static CreateTemplatePageController getInstance() {
        if (instance == null) {
            instance = new CreateTemplatePageController();
        }
        return instance;
    }


    public CreateTemplatePage newInstance() {
        return new CreateTemplatePage();

    }

    public void afterLoadFromHistory() {

    }

    public MenuComponent newMenuInstance() {
        return new MenuLinkComponent("Create template");
    }

    public void afterLoad() {
    	
    }

    public boolean makeHistory() {
        return true;
    }


    public UserStateConstant getLegalState() {
        return UserStateConstant.GUEST;
    }



    public void saveTemplate() {
        //To change body of created methods use File | Settings | File Templates.
    }
}